//
//  tableHeader.m
//  demo3
//
//  Created by 张仕儒 on 2021/7/9.
//

#import "TableHeader.h"

@interface TableHeader ()

@end

@implementation TableHeader

+ (instancetype)initWithNibName:(NSString *)nibName{
    if (nibName == nil) {
        nibName = @"TableHeader";
    }
    NSNib *nib = [[NSNib alloc] initWithNibNamed:nibName bundle:nil];
    NSArray *objects = nil;
    BOOL isInitial = [nib instantiateWithOwner:self topLevelObjects:&objects];
    if (isInitial) {
        for (id obj in objects) {
            if([obj isKindOfClass:[TableHeader class]]) {
                TableHeader *header = (TableHeader *)obj;
                return  header;
            }
        }
    }
    return nil;
}

- (void)drawRect:(NSRect)dirtyRect {
    [super drawRect:dirtyRect];
    
    // Drawing code here.
}

@end
